﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.Client.Commands
{
    class ConfigureCommand : ACommand
    {
        /// <summary>
        /// 当前配置
        /// </summary>
        internal static PayConnandConfigure currentConfigure = new PayConnandConfigure();
        
        /// <summary>
        /// 
        /// </summary>
        public override string CommandCode
        {
            get
            {
                return "config";
            }
        }

        public override string CommandHelpExplain
        {
            get
            {
                return "配置服务器地址，App等相关信息";
            }
        }

        public override void SendCommand(string args)
        {
            currentConfigure.Init();
            currentConfigure.SetConfig();           
        }
    }
}
